package com.quickcancellation.crm.pojo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.experimental.Tolerate;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author baomidou
 * @since 2023-02-18
 */
@TableName("sys_t_dictionary")
@ApiModel(value = "Dictionary对象", description = "")
@Data
@AllArgsConstructor
//@NoArgsConstructor
public class Dictionary implements Serializable {

    private static final long serialVersionUID = 1L;

    @Tolerate
    public Dictionary(){}

    @ApiModelProperty("字典id")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    @ApiModelProperty("字典key")
    private String dicKey;

    @ApiModelProperty("字典值")
    private String dicVal;

    @ApiModelProperty("所属模块")
    private String dicModel;


    @Override
    public String toString() {
        return "Dictionary{" +
            "id=" + id +
            ", dicKey=" + dicKey +
            ", dicVal=" + dicVal +
            ", dicModel=" + dicModel +
        "}";
    }
}
